#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>

using namespace std;

int rec[62503]; //全部整成1行

int main(){
    //数据处理
    memset(rec, 0, sizeof(rec));
    char tmp;
    int ptr = 1;
    while(tmp != 'E'){
        cin >> tmp;
        if (tmp == 'W')   {
            rec[ptr++] = 1;
        }
        else if(tmp == 'L'){
            rec[ptr++] = 2;
        }
        else{
            break;
        }
    }
    int scr_a = 0; int scr_b = 0;   //a为华华，b为其对手。 
    //11分部分
    for(int i = 1; i <= ptr + 100; i++){
        if(rec[i] == 1){
            scr_a++;
        }
        if(rec[i] == 2){
            scr_b++;
        }
        if(rec[i] == 0){
            cout << scr_a << ":" << scr_b << "\n";
            break;
        }
        if(abs(scr_a - scr_b) >= 2 && (scr_a >= 11 || scr_b >= 11)){
            cout << scr_a << ":" << scr_b << "\n";
            scr_a = 0; scr_b = 0;
        }
    }
    cout << "\n";
    scr_a = 0; scr_b = 0;
    //21分部分
    for(int i = 1; i <= ptr + 100; i++){
        if(rec[i] == 1){
            scr_a++;
        }
        if(rec[i] == 2){
            scr_b++;
        }
        if(rec[i] == 0){
            cout << scr_a << ":" << scr_b << "\n";
            break;
        }
        if(abs(scr_a - scr_b) >= 2 && (scr_a >= 21 || scr_b >= 21)){
            cout << scr_a << ":" << scr_b << "\n";
            scr_a = 0; scr_b = 0;
        }
    }
    return 0;
}